package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/20 13:06
 * @version: 0.0.1
 * @modified By:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "quanzi_comment")
public class Comment implements Serializable {
    private static final long serialVersionUID = -291788258125767614L;
    private ObjectId id;
    private ObjectId publishId; //发布id
    private Integer commentType;//评论类型，1-点赞，2-评论，3-喜欢
    private String content; //评论内容
    private Long userId;    //评论人
    private Long publishUserId;//发布评论的人
    private Boolean isParent=false; //是否为父节点，默认是否
    private ObjectId parentId;//父节点id
    private Long created; //发表时间

}
